package com.invengo.testrfid.di.module;

import com.google.gson.Gson;

import android.app.Application;

import com.invengo.testrfid.mvp.contract.AddCageNewContract;
import com.invengo.testrfid.mvp.model.AddCageNewModel;
import com.jess.arms.di.scope.ActivityScope;

import dagger.Module;
import dagger.Provides;


@Module
public class AddCageNewModule {
    private AddCageNewContract.View view;

    /**
     * 构建AddCageNewModule时,将View的实现类传进来,这样就可以提供View的实现类给presenter
     *
     * @param view
     */
    public AddCageNewModule(AddCageNewContract.View view) {
        this.view = view;
    }

    @ActivityScope
    @Provides
    AddCageNewContract.View provideAddCageNewView() {
        return this.view;
    }

    @ActivityScope
    @Provides
    AddCageNewContract.Model provideAddCageNewModel(AddCageNewModel model) {
        return model;
    }
}